Skip to content

fix: dodge Swift 6.3 SIL inliner crash on Onramp deinit#334

Merged
raulriera merged 1 commit into
mainfrom
fix/onramp-deinit-inliner-crash-only
May 28, 2026
Merged

fix: dodge Swift 6.3 SIL inliner crash on Onramp deinit#334
raulriera merged 1 commit into
mainfrom
fix/onramp-deinit-inliner-crash-only

Conversation

@raulriera
Copy link
Copy Markdown
Collaborator

TestFlight archive (Release -O) of flipcash-1.11.0 failed with a Swift compiler crash in the EarlyPerfInliner pass on OnrampVerificationViewModel's isolated deinit (xcode-cloud build #421). Marking the deinit @_optimize(none) skips the SIL optimizer for just that function and works around the bug; runtime behavior is unchanged. This is cherry-picked from fix/onramp-deinit-inliner-crash so it can ship independently of the contact-sync stack.

Test plan:

  • Local archive (Release, generic/platform=iOS) succeeds
  • Re-cut flipcash-1.11.0 archives on Xcode Cloud

TestFlight archive (Release -O) was crashing inside the SIL optimizer's
EarlyPerfInliner pass — a Swift 6.3 compiler bug triggered when checking
layout-constraint compatibility through the generic parameters of the
@mainactor OnrampVerificationViewModel's isolated deinit. Marking the
deinit @_optimize(none) skips the optimizer for just that function;
runtime behavior is unchanged.
@raulriera raulriera merged commit f2f1801 into main May 28, 2026
@raulriera raulriera deleted the fix/onramp-deinit-inliner-crash-only branch May 28, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant